import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: () => import('../views/Login.vue'),
    },
    {
      path: '/Main',
      name: 'Main',
      component: () => import('../views/Main.vue'),
      children: [
        {
          path: '',
          name: 'Dashboard',
          component: () => import('../views/Dashboard.vue'),
        },
        {
          path: '/Goods',
          name: 'Goods',
          component: () => import('../views/Goods/Goods.vue'),
        },
        
        {
          path: '/CustomerService',
          name: 'CustomerService',
          component: () => import('../views/CustomerService.vue'),
        },
        
        {
          path: '/InWareHouse',
          name: 'InWareHouse',
          component: () => import('../views/WareHouseManagement/InWareHouse.vue'),
        },


        {
          path: '/AddGoods',
          name: 'AddGoods',
          component: () => import('../views/Goods/AddGoods.vue'),
        },
        {
          path:'/Warehouse',
          name:'Warehouse',
          component:()=>import('../views/Warehouse_vue/Warehouse.vue'),
        },
        {
          path:'/AddWarehouse',
          name:'AddWarehouse',
          component:()=>import('../views/Warehouse_vue/AddWarehouse.vue'),
        },
        {
          path:'/Inventory',
          name:'Inventory',
          component:()=>import('../views/sly_StandingBook/Inventory.vue'),
        },
        {
          path:'/InOut',
          name:'InOut',
          component:()=>import('../views/sly_StandingBook/InOut.vue'),
        },
        {
          path:'/GetInventory_Distribution',
          name:'GetInventory_Distribution',
          component:()=>import('../views/sly_StandingBook/GetInventory_Distribution.vue'),
        },
        {
          path:'/GetGoods_Details',
          name:'GetGoods_Details',
          component:()=>import('../views/sly_StandingBook/GetGoods_Details.vue'),
        },
        {
          path:'/GetGoods_Times',
          name:'GetGoods_Times',
          component:()=>import('../views/sly_StandingBook/GetGoods_Times.vue'),
        },
        {
          path:'/Pici',
          name:'Pici',
          component:()=>import('../views/sly_StandingBook/Pici.vue'),
        },
        {
          path:'/Tablelists',
          name:'Tablelists',
          component: () => import('../views/sly_StandingBook/Tablelists.vue'),
        },
{
          path:'/GetGoodsType',
          name:'GetGoodsType',
          component: () => import('../views/Goods/GetGoodsType.vue'),
        },
        
        {
          path:'/Allocate',
          name:'Allocate',
          component:()=>import('../views/Goods/Allocate.vue'),
        },
         {
          path:'/IOWareHouse',
          name:'IOWareHouse',
          component:()=>import('../views/WareHouseManagement/IOWareHouse.vue'),
        },
        {
          path:'/AddAllocate',
          name:'AddAllocate',
          component:()=>import('../views/Goods/AddAllocate.vue'),
        },
        {
          path:'/ReviewModel',
          name:'ReviewModel',
          component:()=>import('../views/Snventory/ReviewModel.vue'),
        },
        {
          path:'/AddReviewModel',
          name:'AddReviewModel',
          component:()=>import('../views/Snventory/AddReviewModel.vue'),
        },
        {
          path:'/Prediction',
          name:'Prediction',
          component:()=>import('../views/Prediction/Prediction.vue'),
        },
        
        {
          path:'/ReturnGoods',
          name:'ReturnGoods',
          component:()=>import('../views/Sales/ReturnGoods.vue'),
        },
        
        {
          path:'/InWareHouseGoods',
          name:'InWareHouseGoods',
          component:()=>import('../views/Sales/InWareHouseGoods.vue'),
        },


        {
          path:'/GetGoodsType',
          name:'GetGoodsType',
          component:()=>import('../views/Goods/GetGoodsType.vue'),
        },
      ],
    },
  ],
})


export default router